<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<form method="post" action="${pageContext.request.getContextPath()}/User">
    <div class="card" style="width: 50%;margin: 0 auto;">
        <div class="card-header">
            <a href="${header["referer"]}">
                <svg t="1590586077033" class="icon" viewBox="0 0 1024 1024" version="1.1"
                     xmlns="http://www.w3.org/2000/svg" p-id="2683"
                     width="20" height="20">
                    <defs>
                        <style type="text/css"></style>
                    </defs>
                    <path
                            d="M221.2 465.728l182.416-182.416c18.024-18.024 17.984-47.28-0.08-65.352-18.08-18.064-47.336-18.104-65.36-0.08L77.104 478.96c-18.024 18.024-17.984 47.28 0.08 65.36l261.736 261.728c18.072 18.064 47.328 18.104 65.352 0.08s17.984-47.28-0.08-65.352L221.68 558.272h692.16c25.488 0 46.152-20.72 46.152-46.272s-20.664-46.272-46.152-46.272H221.192z"
                            p-id="2684"></path>
                </svg>
            </a>修改个人信息
        </div>
        <div class="card-body">
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">账号</span>
                </div>
                <input name="id" type="text" class="form-control" placeholder="账号" value="${person.id}"
                       readonly="readonly">
            </div>
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">名字</span>
                </div>
                <input name="name" type="text" class="form-control" placeholder="名字" value="${person.name}">
            </div>
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">密码</span>
                </div>
                <input name="password" type="password" class="form-control" placeholder="密码" value="${person.password}">
            </div>
            <input name="op" type="hidden" value="modify"/>
        </div>
        <div class="card-footer">
            <input type="submit" class="btn btn-outline-primary justify-content-center" value="修改">
            <hr/>
            <a class="btn btn-danger" href="${pageContext.request.getContextPath()}/User?op=destroy&id=${person.id}">删除账户</a>
        </div>
    </div>
</form>
</body>
</html>
